<form name="form_admin"  method="POST" action="" >
<input type="hidden" name="opt" value="updatephotos" />
<input type="hidden" name="Category" value="<?php echo $id?>" />
<table border="0" width="100%" cellpadding="0" cellspacing="0">
    <tr>
        <td width="10"></td>
        <td style="height: 30px;" valign="middle"><b>Tour: <?php echo $tour['cName']?></b></td>
        <td>
        <textarea style="display:none"></textarea>
        </td>
    </tr>
    <tr>
    <td colspan="2">
		<table width="100%" cellpadding="4" cellspacing="1"id="tblsort">
			<tr class="headtb" nodrop="true" nodrag="true">
				<td width="5" ><?php echo _IMAGE?></td>
				<td width="300" ><?php echo _NAME?></td>
				<td width="20" ><?php echo _ACTIONS?></td>
				<td></td>
			</tr>
		</table>
        <input type="button" class="b1" onclick="tinyMCE.execCommand('mceTrImgC',{func:addrow})" value="Select Images">
		<input type="button" onclick="location.reload(true)" class="b1" id="breset"  value="<?php echo _RESET?>">
    </td>
    </tr>
</table>
</form>
<?php echo $show_page?>
<script src="javascript/photos.js"></script>
<script>
<?
foreach($photos as $i=>$content)
{
    echo "addrow({id: ".$content['iId'].",n: '".$content['cName']."',r:'../".$folder_img_upload."',p:'',f:'".$content['cImage']."'});";
}
?>
(new TableDnD).init("tblsort");
</script>